import { pget, ppostJson } from '@/utils/req';
import { modalApi } from '@/utils/modalReq';
// 获取业务编号
export function getBusinessCode(query: any) {
  return pget(
    `${modalApi.purchase}/shopec-purchase-utils/utils/getBusinessCode`,
    query,
  );
}

/** 保存采购合同导入数据 */
export function contractImport(query?: any) {
  return ppostJson(
    `${modalApi.purchase}/shopec-purchase-contract/contract/import/${query.batch}`,
  );
}
